-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add into_inner() for HTTP client and server #412
Conversation
This addresses #230 |
I do not think the failure is related. |
I feel like this is a common-ish rust pattern, where you have into_inner(), that then returns the original thing the object was built from. We'd probably want to flush, but I think a reasonable way to make the API is something like: At least for the HTTP v1 client:
The other option, which extends our current story is:
Curious, what folks find more palatable? |
e9afcaa
to
6d725eb
Compare
This adds the into_inner() function to the stream type, allowing the HTTP/1.1 client and server to be turned back into a stream. These functions are useful for implementing HTTP CONNECT or HTTP Upgrade.
6d725eb
to
95aa770
Compare
Bump? |
Thank you for your contribution! this was merged in 63af8e2. |
This adds the into_inner() function to the stream type, allowing the HTTP/1.1 client and server to be turned back into a stream.
These functions are useful for implementing HTTP CONNECT or HTTP Upgrade.